//------------------------------------------
// 接口服务地址
//------------------------------------------
// 测试
// const user_service = 'http://124.239.144.164:7112/test/user_service';
// const statistic_service = 'http://124.239.144.164:7112/test/statistic_service'

// 正式
// const user_service = 'http://124.239.144.164:7112/user_service';
// const statistic_service = 'http://124.239.144.164:7112/statistic_service'
import config from '@/config'

let user_service = config.api.user_service;
let statistic_service = config.api.statistic_service;

//------------------------------------------
// 服务声明
//------------------------------------------
const service = {
  user: user_service,
  statistic: statistic_service
}

export const getServiceUrl = (serviceName) => {
  return service[serviceName];
};

export const getFullUrl = (serviceName) => {
  return (url) => {
    return getServiceUrl(serviceName) + url;
  }
};
